export const ServerUrl = ""; //
export const ApiUrl = ServerUrl + "/api"
export const UploadUrl = ServerUrl + "/common/uploadfile";
export const UploadFile = ServerUrl + "/upload/files";
//前端日志输出级别
export const LOG_LEVEL = "debug";
//前端刷新数据间隔
export const RefreshInterval = 60000;

export const ThemeData: string[] = ["light","dark"]
export interface IParameter {
  sid: string,
  value: string
}
export interface IOptionNode {
  id: string,
  value: number | string,
  children?: IOptionNode[]
}

export interface MenuItem {
  id: string;
  icon: string;
  url: string;
  children?: MenuItem[]
}

export const RoleMenuDefaultData: MenuItem[] = [
  {
    id: "home",
    icon: "HomeFilled",
    url: "/",
  },
  {
    id: "role",
    icon: "Compass",
    url: "/role",
  },
  {
    id: "department",
    icon: "Compass",
    url: "/department",
  },
  {
    id: "about",
    icon: "SwitchButton",
    url: "/about",
  },
  {
    id: "counter",
    icon: "Filter",
    url: "/counter",
  }
]

export interface IField {
  key: string
  label: string
  width?: number
  readonly?: boolean
  selected?: boolean
}

export interface IRollingNewItem {
  uid: string
  title: string
  imageurl: string
}

export interface IStatisticItem {
  key: string
  label: string
  url: string
}

//组织类型常量
export const DepartmentType = {
  NO: 0,
  DO: 1,
  FLOOR: 2,
  FACTORY: 3,
  OTHER: 6
}

//排产工序类型常量
export const ScheduleType = {
  NO: 0,
  SEW: 1,
  LINK: 2,
  MACHINE: 3,
  POST: 4,
  OUTPROCESS: 9,
  ORDERBOARD: 100
}
